package com.admin.controller;

import com.common.domain.entity.ResponseResult;
import com.common.service.VolunteerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author
 * @Date 2023/11/5 15:46
 **/
@RestController
@RequestMapping("system/volunteerLog")
public class VolunteerLogController {
    @Autowired
    private VolunteerService volunteerService;

    @GetMapping("list")
    public ResponseResult allVolunteerLogList(Integer pageNum, Integer pageSize, Long id, String userName){
        return volunteerService.allVolunteerLogList(pageNum,pageSize,id,userName);
    }


    @DeleteMapping("{ids}")
    public ResponseResult updateVolunteerLog(@PathVariable String ids){
        return volunteerService.updateVolunteerLog(ids);
    }

}
